﻿using BootyBay.ServerWebApp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using BootyBay.Models;

namespace BootyBay.ServerWebApp.WCFSvcs
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IStoreServices" in both code and config file together.
    [ServiceContract]
    public interface IStoreServices
    {

        [OperationContract]
        List<View_Application> GetAllAppInfoData();

        //[OperationContract]
        //List<ApplicationVersionInfo> GetUserPurchasedAppInfoData(string userName, string pwd);ApplicationVersionInfo

        //[OperationContract]
        //List<ApplicationVersionInfo> GetAppInfoDataRequestingInstall(string userName, string pwd);

        [OperationContract]
        ApplicationVersionInfo GetVersionInfo(int appVersionInfoId);

        [OperationContract]
        ApplicationProcessorArchitecture GetPackageUrl(int appVersionInfoId, int processArchitecture);

        [OperationContract]
        List<Category> GetAllCategories();

        [OperationContract]
        List<View_Application> GetRecommendedApps();

        [OperationContract]
        List<View_Application> GetPromotionalApps();

        [OperationContract]
        View_StoreUser ValidateUser(string userName);
    }
}
